package cn.edu.hust.youth.tzb.service;

public class OnlineCounter {
    private static long online = 0;
    private static long onlinemanager = 0;
    private static long onlinestudent = 0;
    public static long getOnline() {
        return online;
    }
    public static long getOnlineManager() {
        return onlinemanager;
    }
    public static long getOnlineStudent() {
        return onlinestudent;
    }
    public static void raise(){
        online++;
    }
    public static void raiseManager(){
        onlinemanager++;
    }
    public static void raiseStudent(){
        onlinestudent++;
    }
    public static void reduce(){
        online--;
    }
    public static void reduceManager(){
       onlinemanager--;
    }
    public static void reduceStudent(){
       onlinestudent--;
    }
}
